﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
public partial class _Default : System.Web.UI.Page
{
    SqlConnection conn;
    SqlCommand cmd;
    DataSet ds;
    SqlDataAdapter da;
    protected void Page_Load(object sender, EventArgs e)
    {
        data dt=new data();
        conn=dt.getconnect();
        cmd=new SqlCommand("getallnhanvien",conn);
        cmd.CommandType=CommandType.StoredProcedure;
        ds=new DataSet();
        da=new SqlDataAdapter(cmd);
        da.Fill(ds,"nhanvien");
        dl.DataSource = ds.Tables["nhanvien"];
        dl.DataBind();
    }
    protected void c_Click(object sender, EventArgs e)
    {
        a.Text = b.Text;
    }
}